package com.csii.mobilebanking;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SimpleAdapter;

public class MoreListViewAdapter extends SimpleAdapter {
	
	private int[] drawables=new int[]{R.drawable.left_list_bak1,R.drawable.left_list_bak2};
	

	public MoreListViewAdapter(Context context, List<? extends Map<String, ?>> data, int resource, String[] from, int[] to) {
		super(context, data, resource, from, to);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		View view=super.getView(position, convertView, parent);
		int drawable = position % 2;
		view.setBackgroundResource(drawables[drawable]);
		return view;
	}

}
